module.exports = {
  publicPath: process.env.NODE_ENV === "production" ? "https://cdn.dc-news.kakkk.net" : "/",
  pwa: {
    workboxOptions: {
      // https://developers.google.com/web/tools/workbox/modules/workbox-webpack-plugin
      skipWaiting: true,
      clientsClaim: true,
      importWorkboxFrom: "local",
      importsDirectory: "js",
      navigateFallback: "/",
      navigateFallbackBlacklist: [/\/api\//],
    },
  },
  // configureWebpack: {
  //   externals: {
  //     vue: "Vue",
  //     vant: "vant",
  //     echarts: "echarts",
  //     bar: "echarts/lib/chart/bar",
  //   },
  // },
};
